<template>
  <div class="titleCheck">
    <div class="left">
      <!-- 标题放在slot -->
      <slot></slot>
      <!-- 标题描述 -->
      <div class="descText" v-text="itemInfo"></div>
    </div>
    <router-link :to="{
      path:url,
      query:{
        banner:Banner,
        list:List
      }
    }" tag="p">
      <div class="right">
        <div><span>更多</span></div>
        <van-icon name="arrow" />
      </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: "TitleCheck",
  props: ["itemInfo", "url","Banner","List"],
};
</script>

<style lang="less" scoped>
.titleCheck {
  display: flex;
  justify-content: space-between;
  padding: 3vw 2vw 3vw 4vw;
  .left {
    flex: 1;
    div {
      text-align: left;
      padding: 0.3vw;
      position: relative;
      span {
        position: absolute;
        font-size: 0.3rem;
        left: 1.8rem;
        top: 0;
        color: rgb(235, 3, 3);
      }
    }
    div:first-of-type {
      font-size: 0.41rem;
      font-weight: bolder;
    }
    .descText {
      font-size: 0.33rem;
      color: rgb(160, 153, 153);
    }
  }
  p {
    .right {
      margin-top: 5px;
      width: 15vw;
      display: flex;
      justify-content: center;
      align-items: center;
      div:first-of-type {
        span {
          font-size: 0.33rem;
        }
      }
      div:last-of-type {
        font-size: 0.33rem;
      }
    }
  }
}
</style>